//
//  MineHelpCenterTableViewCell.m
//  YTwallet
//
//  Created by ZhangLin on 2019/4/2.
//  Copyright © 2019年 hadrlog. All rights reserved.
//

#import "MineHelpCenterTableViewCell.h"
#import <Masonry.h>
@implementation MineHelpCenterTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self setupViews];
    }
    return self;
}
-(void)setupViews
{
    self.tipsLab = [[UILabel alloc] init];
    self.tipsLab.textColor = ETColorWithRGB(51, 51, 51);
    self.tipsLab.font = [UIFont systemFontOfSize:16];
    [self.contentView addSubview:self.tipsLab];
    
    
    self.lineView = [[UIView alloc] init];
    self.lineView.backgroundColor = ETTableViewLineColor;
    [self.contentView addSubview:self.lineView];
    
    self.arrowImv = [[UIImageView alloc] init];
    self.arrowImv.image = [UIImage imageNamed:@"me_icon_arrow_right"];
    [self.contentView addSubview:self.arrowImv];
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    
    [self.tipsLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(15);
        make.centerY.equalTo(self);
    }];
    
    [self.lineView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(15);
        make.right.mas_equalTo(0);
        make.height.mas_equalTo(ETTableViewLineHeight);
        make.bottom.equalTo(self);
    }];
    
    [self.arrowImv mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self);
        make.right.mas_equalTo(-15);
        make.height.mas_equalTo(16);
        make.width.mas_equalTo(16);
    }];
    
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
